<?php
// 统计类
class StatisticsAction extends Action {
	public function index() {
		$url = $_POST ['url'];
		$user_IP = ($_SERVER ["HTTP_VIA"]) ? $_SERVER ["HTTP_X_FORWARDED_FOR"] : $_SERVER ["REMOTE_ADDR"];
		$user_IP = ($user_IP) ? $user_IP : $_SERVER ["REMOTE_ADDR"];
		// echo
		// $_COOKIE['http://www_recover_com:8081/android-recovery-tutorials_html'];
		// echo $_COOKIE['.$url.'];
		
		if ($_COOKIE [$url]) {
			cookie ( $url, $url, 3600 );
		} else {
			
			$_COOKIE [$url] = $_COOKIE [$url] + 1;
		}
		print_r ( $_COOKIE );
	}
}